package userInsertWord;

import java.util.Scanner;
import wordChecker.IWordChecker;


public class UserConsoleWord implements IUserInsertWord {

	@Override
	public String userInsertWord( IWordChecker wordChecker ) {
		
		String stringToReturn = "";
		Scanner scanner = new Scanner( System.in );
		
		while( !wordChecker.isCorrectWord(stringToReturn) )
			stringToReturn = scanner.nextLine();
		
		return stringToReturn;
	}

}
